import { request } from "@/utils/request";

// 接口前缀
const echartsApiUrl = "/tu.php";

//获取色块值
export async function getColorValue(params) {
  return await request.post(echartsApiUrl + "?actName=colorValue", params);
}
//获取色块面积
export async function getColorArea(params) {
  return await request.post(echartsApiUrl + "?actName=colorArea", params);
}
//获取指数
export async function getZhiShu(params) {
  return await request.post(echartsApiUrl + "?actName=czhishu", params);
}
//获取页尾颜色比例值
export async function getColorConfig(params) {
  return await request.post(echartsApiUrl + "?actName=colorConfig", params);
}
//页尾颜色时间接口
export async function getColorTime(params) {
  return await request.post(echartsApiUrl + "?actName=colorTime", params);
}
